﻿namespace Shared.Service.DataScopes
{
    /// <summary>
    /// 数据范围
    /// </summary>
    public class DataScope : BaseDataScope
    {
        public DataScope(DataScopeType scopeType, string[] scopeKeys)
        {
            ScopeType = scopeType;

            ScopeKeys = scopeKeys;
        }
        public override DataScopeType ScopeType { get; }

        public override string[] ScopeKeys { get; set; }

        public static DataScope NullDataScope { get; } = new DataScope(DataScopeType.Null, null);
    }
}
